<template>
    <div class="book-list">
        <div class="header">
            <div class="heading">{{heading}}</div>
            <div class="more">更多…</div>
        </div>
        <hr>
        <div class="book-items">
            <div class="book" v-for="book in books">
                <div class="cover"><img :src="book.img_url"></div>
                <div class="title">书名：{{book.title}}</div>
                <div class="authors">作者：{{book.authors}}</div>
            </div>
        </div>
    </div>
</template>

<script type="text/ecmascript-6">
    import './less/list.less'

    export default{
        props:['books','heading'],
        filters:{
            join(args){
                returnargs.join(',')
            }
        },
        methods:{
            createevent(){
                this.$emit('haha');
            }
        },
        data(){
            return{
            }
        }
    }
</script>